#ifndef H264SAVE_GST_H
#define H264SAVE_GST_H

#include <gst/gst.h>
#include <string>

class H264Save
{
  public:
    H264Save(const std::string & savePath);
    void InputH264(const char* val,std::size_t size);
    virtual ~H264Save();
  private:
    GstElement *pipeline,*appsrc,*queue,*matroskamux,*filesink;
    GstBus *bus;
};

#endif
